import { Component } from '@angular/core';
import { AuthService } from '../services/auth.service';

@Component({
  selector: 'app-root',
  templateUrl: './front.component.html'
})
export class FrontComponent {
  isBackColor = false;

  constructor(public auth: AuthService) {
    const _this = this;
    window.addEventListener('scroll', function () {
      const pageScrollTop = document.body.scrollTop || document.documentElement.scrollTop;
      _this.isBackColor = pageScrollTop > 20 ? true : false;
    });
  }
}
